package com.hbm.usercenter.activity;

import android.view.View;
import android.widget.Button;
import android.widget.TextView;

import com.hbm.usercenter.R;
import com.hbm.usercenter.base.BaseActivity;
import com.hbm.usercenter.base.LoadingPager;

import butterknife.Bind;
import butterknife.ButterKnife;
import butterknife.OnClick;

public class MyQrcodeActivity extends BaseActivity {

    @Bind(R.id.btn_change)
    Button mBtnChange;
    @Bind(R.id.toolbar_title)
    TextView mToolbarTitle;
    private boolean isAPP = true;

    @Override
    protected LoadingPager.LoadedResult initData() {
        return LoadingPager.LoadedResult.SUCCESS;
    }

    @Override
    protected View initSuccessView() {
        View view = View.inflate(this, R.layout.activity_my_qrcode, null);
        ButterKnife.bind(this, view);
        initToolbar(view, "APP注册");
        initView();
        return view;
    }

    protected void initView() {
    }

    @OnClick(R.id.btn_change)
    public void onViewClicked() {
        if (isAPP) {
            mToolbarTitle.setText("APP注册");
            mBtnChange.setText("APP注册");
            isAPP = false;
        } else {
            mToolbarTitle.setText("微信注册");
            mBtnChange.setText("微信注册");
            isAPP = true;
        }

    }
}
